import colorama as c

def err(errProgram = "", errRes = ""):
    '''
    errProgram: str(抛出异常的程序名); 
    errRes: str(异常名称)
    return: None
    '''
    if (errProgram == '' or errRes == ''):
        raise ValueError("'errProgram' or 'errRes' argument must not be none")
    print(f"\n{c.Fore.RESET}[{c.Fore.RED}{c.Style.BRIGHT}ERROR{c.Style.NORMAL}{c.Fore.RESET}{c.Back.RESET}]" +  # Header [ERROR]
    f" {c.Style.BRIGHT}{c.Back.RED}{c.Fore.RESET}{errProgram}{c.Style.NORMAL}" + # WHAT PROGRAM ERR
    f"{c.Back.RESET}: {c.Fore.RED}{errRes}{c.Fore.RESET}") # WHAT HAPPEND

def fatal(errProgram = "", errRes = ""):
    '''
    errProgram: str(抛出异常的程序名); 
    errRes: str(异常名称)
    return: None
    '''
    if (errProgram == '' or errRes == ''):
        raise ValueError("'errProgram' or 'errRes' argument must not be none")
    print(f"\n{c.Fore.RESET}[{c.Fore.RED}{c.Style.BRIGHT}FATAL{c.Style.NORMAL}{c.Fore.RESET}]" +  # Header [ERROR]
    f" {c.Style.BRIGHT}{c.Back.RED}{errProgram}{c.Style.NORMAL}" + # WHAT PROGRAM ERR
    f"{c.Back.RESET}: {c.Fore.RED}{errRes}{c.Fore.RESET}") # WHAT HAPPEND
